package com.ruoyi.wechat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wechat.mapper.WxActivityMapper;
import com.ruoyi.wechat.domain.WxActivity;
import com.ruoyi.wechat.service.IWxActivityService;

/**
 * 营地活动Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class WxActivityServiceImpl implements IWxActivityService 
{
    @Autowired
    private WxActivityMapper wxActivityMapper;

    /**
     * 查询营地活动
     * 
     * @param activityId 营地活动主键
     * @return 营地活动
     */
    @Override
    public WxActivity selectWxActivityByActivityId(String activityId)
    {
        return wxActivityMapper.selectWxActivityByActivityId(activityId);
    }

    /**
     * 查询营地活动列表
     * 
     * @param wxActivity 营地活动
     * @return 营地活动
     */
    @Override
    public List<WxActivity> selectWxActivityList(WxActivity wxActivity)
    {
        return wxActivityMapper.selectWxActivityList(wxActivity);
    }

    /**
     * 新增营地活动
     * 
     * @param wxActivity 营地活动
     * @return 结果
     */
    @Override
    public int insertWxActivity(WxActivity wxActivity)
    {
        return wxActivityMapper.insertWxActivity(wxActivity);
    }

    /**
     * 修改营地活动
     * 
     * @param wxActivity 营地活动
     * @return 结果
     */
    @Override
    public int updateWxActivity(WxActivity wxActivity)
    {
        return wxActivityMapper.updateWxActivity(wxActivity);
    }

    /**
     * 批量删除营地活动
     * 
     * @param activityIds 需要删除的营地活动主键
     * @return 结果
     */
    @Override
    public int deleteWxActivityByActivityIds(String[] activityIds)
    {
        return wxActivityMapper.deleteWxActivityByActivityIds(activityIds);
    }

    /**
     * 删除营地活动信息
     * 
     * @param activityId 营地活动主键
     * @return 结果
     */
    @Override
    public int deleteWxActivityByActivityId(String activityId)
    {
        return wxActivityMapper.deleteWxActivityByActivityId(activityId);
    }
}
